import React from 'react';
import ListItem from './ListItem'

const List = ({list}) => {
    return (
        <ul>
          {list&&list.map((item,index) => <ListItem {...item} onClick={(index)=> {} } ></ListItem> )}  
        </ul>
    );
}

export default List;
